package com.greedy.bean.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.sql.Timestamp;
import java.time.LocalDateTime;

/**
 * @Author: Yanxy
 * @Date: Created in:2022-12-24
 * Description: 达人探店日记
 */
@Data
@Accessors(chain = true)
public class Blog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @JSONField(name = "ID")
    private Long id;
    /**
     * 商户id
     */
    @JSONField(name = "SHOP_ID")
    private Long shopId;
    /**
     * 用户id
     */
    @JSONField(name = "USER_ID")
    private Long userId;
    /**
     * 用户图标
     */
    @JSONField(name = "ICON")
    private String icon;
    /**
     * 用户姓名
     */
    @JSONField(name = "NAME")
    private String name;
    /**
     * 是否点赞过了
     */
    @JSONField(name = "IS_LIKE")
    private Boolean isLike;
    /**
     * 标题
     */
    @JSONField(name = "TITLE")
    private String title;
    /**
     * 探店的照片，最多9张，多张以","隔开
     */
    @JSONField(name = "IMAGES")
    private String images;
    /**
     * 探店的文字描述
     */
    @JSONField(name = "CONTENT")
    private String content;
    /**
     * 点赞数量
     */
    @JSONField(name = "LIKED")
    private Integer liked;

    /**
     * 评论数量
     */
    @JSONField(name = "COMMENTS")
    private Integer comments;

    /**
     * 创建时间
     */
    @JSONField(name = "CREATE_TIME")
    private Timestamp createTime;

    /**
     * 更新时间
     */
    @JSONField(name = "UPDATE_TIME")
    private Timestamp updateTime;


}
